gcc4 build fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
#include <asm/system.h>
#include <xen/dmi.h>
-#define bt_ioremap(b,l) __acpi_map_table(b,l)
+#define bt_ioremap(b,l) ((u8 *)__acpi_map_table(b,l))
#define bt_iounmap(b,l) ((void)0)
#define ioremap(b,l) (__va(b))
#define memcpy_fromio memcpy
static char * __init dmi_string(struct dmi_header *dm, u8 s)
{
- u8 *bp=(u8 *)dm;
+ char *bp=(char *)dm;
bp+=dm->length;
if(!s)
return "";
unsigned long rsdp_phys = 0;
struct acpi_table_header *header = NULL;
int i;
- struct acpi_table_sdt sdt;
+ struct acpi_table_sdt sdt = { 0 };
rsdp_phys = acpi_find_rsdp();
rsdp = __va(rsdp_phys);